package cn.iocoder.yudao.module.esim.controller.admin.esasset.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - eSim资产新增/修改 Request VO")
@Data
public class EsAssetSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "19156")
    private String id;

    @Schema(description = "订单流水号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "订单流水号不能为空")
    private String orderNo;

    @Schema(description = "用户id", requiredMode = Schema.RequiredMode.REQUIRED, example = "23841")
    @NotNull(message = "用户id不能为空")
    private Long userId;

    @Schema(description = "SPU id", requiredMode = Schema.RequiredMode.REQUIRED, example = "18522")
    @NotNull(message = "SPU id不能为空")
    private Integer spuId;

    @Schema(description = "SKU id", requiredMode = Schema.RequiredMode.REQUIRED, example = "11306")
    @NotNull(message = "SKU id不能为空")
    private Integer skuId;

    @Schema(description = "eSim商品id", requiredMode = Schema.RequiredMode.REQUIRED, example = "28739")
    @NotEmpty(message = "eSim商品id不能为空")
    private String esProductId;

    @Schema(description = "流量总量MB", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "流量总量MB不能为空")
    private Integer totalDataSizeInMb;

    @Schema(description = "流量已使用量MB", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "流量已使用量MB不能为空")
    private Integer usedDataSizeInMb;

    @Schema(description = "开始时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "开始时间不能为空")
    private LocalDateTime startDate;

    @Schema(description = "结束时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "结束时间不能为空")
    private LocalDateTime endDate;

}